#include "mpLog.h"
#include "mpAppUtils.h"
#include "mpRandomUtils.h"
#include "mpCommonTests.h"

mpCommonTests::mpCommonTests()
{
}
void mpCommonTests::initTestCase(){}
void mpCommonTests::cleanupTestCase(){}


void mpCommonTests::case_other(){

//#ifdef TEST_STRATEGY_COMPLETED


    MP::AppUtils::currentThreadWaiting(5000);

    MPLOG_INFO << "[currentProcessId]:" << MP::AppUtils::currentProcessId();
    MPLOG_INFO << "[currentProcessPath]:" << MP::AppUtils::currentProcessPath();
    MPLOG_INFO << "[currentProcessIsRuningCdRom]:" << MP::AppUtils::currentProcessIsRuningCdRom();

    std::string userName;
    MP::AppUtils::getUserLogon(userName);
    MPLOG_INFO << "[Logon User Name]:" << userName;

    MPLOG_INFO << "[getRandomInt(1,10)]-1:" << MP::RandomUtils::getRandomInt(1,10);
    MPLOG_INFO << "[getRandomInt(1,10)]-2:" << MP::RandomUtils::getRandomInt(1,10);
    MPLOG_INFO << "[getRandomInt(1,10)]-3:" << MP::RandomUtils::getRandomInt(1,10);
    MPLOG_INFO << "[getRandomInt(1,10)]-4:" << MP::RandomUtils::getRandomInt(1,10);
    MPLOG_INFO << "[getRandomInt(1,10)]-5:" << MP::RandomUtils::getRandomInt(1,10);
    MPLOG_INFO << "[getRandomInt(1,10)]-6:" << MP::RandomUtils::getRandomInt(1,10);



    MPLOG_INFO << "[getUUID]-1:" << MP::RandomUtils::getUUID();
    MPLOG_INFO << "[getUUID]-2:" << MP::RandomUtils::getUUID();
    MPLOG_INFO << "[getUUID]-3:" << MP::RandomUtils::getUUID();
    MPLOG_INFO << "[getUUID]-4:" << MP::RandomUtils::getUUID();
    MPLOG_INFO << "[getUUID]-5:" << MP::RandomUtils::getUUID();

    QVERIFY2(userName != "","user is login");


//#endif

}
